﻿
namespace LimitedScopeTrader
{
    public static class ApplicationConstants
    {
        public const int MAX_STRING_FIELD_SIZE = 255;
        public const string EXIT_APP_MESSAGE = "Exit the application?";

        public const string MSGBOX_TITLE = "Applicaiton Error";

        // System error messages
        public const string INVALID_TICKER_ERROR = "Please enter a valid ticker";
        public const string INVALID_COMPANY_ERROR = "Please enter a valid company";
        public const string INVALID_SECURITY_TYPE_ERROR = "Please enter a valid security type";
        public const string INVALID_TRADE_TYPE_ERROR = "Please enter a valid trade type";
        public const string INVALID_PRICE_ERROR = "Please enter a valid price";
        public const string INVALID_QUANTITY_ERROR = "Please enter a valid quantity";
        public const string DATA_LOAD_ERROR = "Could not load system data";
        public const string PLACEHOLDER = "__XX__";
        public const string DATA_UPDATE_ERROR = "There was a problem adding " + PLACEHOLDER + " to the database";
        public const string UNHANDLED_EXCEPTION = "An unknown application error has occured";
        public const string INVALID_CREDENTIALS_ERROR = "Username or password is incorrect";
        public const string NO_INTERNET_CONNECTION = "Could not connect to host";

        // System success messages
        public const string TRADE_ENTERED_SUCCESS = "Trade Added! Cha - CHING!";
        public const string TRANSACTION_ENTERED_SUCCESS = "Transaction Added! Cha - CHING!";
        public const string TICKER_ADDED_SUCCESS = "New Security has been added!";

        public const string TICKER_RESEARCH_URL = "http://download.finance.yahoo.com/d/quotes.csv?s=SYMBOL&f=sl1d1t1c1ohgv&e=.csv";
        
    }
}